import React, { useState, useEffect } from "react";

export interface DemoProps {
  title?: string;
}

const Demo: React.FC<DemoProps> = (props) => {
  const { title = "-title" } = props;
  const [count, setCount] = useState(0);

  useEffect(() => {
    return () => {};
  }, []);

  return (
    <div>
      <h1>{count + title}</h1>
    </div>
  );
};

export default Demo;
